//
//  HSYBaseViewController.m
//  HSY
//
//  Created by 陈浩 on 2017/3/31.
//  Copyright © 2017年 金开门. All rights reserved.
//
#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void) setTitle:(NSString *)title{
    [self.titleButton setTitle:title forState:UIControlStateNormal];
}

-(void) handleGoBackEvent:(UIButton *) sender{
    [self.navigationController popViewControllerAnimated:YES];
}

-(void) handleNavigationAction:(HSYNavigationActionType) actionType;{
    if (actionType == HSYNavActionLeftAreaLeft) {
        [self handleGoBackEvent:self.leftAreaLBtn];
    }
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end

